package com.totoro.tygeneratedragonblock.executor.itemmatch.impl;

import com.totoro.tygeneratedragonblock.TyGenerateDragonBlock;
import com.totoro.tygeneratedragonblock.executor.itemmatch.ItemMatchExecutor;
import com.totoro.tygeneratedragonblock.utils.ColorUtil;

/**
 * @author Totoro
 * @version 0.1.0
 * @date 2025/8/10 - 19:19
 * @description
 **/
public class ContainMatchExecutor implements ItemMatchExecutor {
    @Override
    public Boolean execute(String originalName, String matchKeyword) {
        return ColorUtil.strContains(originalName, matchKeyword.split(SPLIT_SYMBOL)[1]);
    }
}
